package org.shopen.puremvc.controller.statehandlers.spec
{
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	import org.shopen.puremvc.ApplicationConstants;
	import org.shopen.puremvc.view.ApplicationMediator;
	import org.shopen.puremvc.view.CreateWindowMediator;

	public class HandleCreatingCommand extends SimpleCommand
	{
		override public function execute(notification:INotification):void
		{
			try
			{				
				var body : Object = notification.getBody();
				sendNotification(ApplicationConstants.SHOW_CREATING_WINDOW, body);
			}
			catch(error : Error)
			{
				sendNotification(ApplicationConstants.GENERAL_ERROR, error);
			}
		}
	}
}